home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / Localization Tools / Localization using ResEdit™ 3.0 / Plugin for ODF 3 / Plugin for ODF 3.rsrc / EDL_130_Resource.FWab < prev    next >
Encoding:
Text File  |  1996-12-11  |  2.2 KB  |  89 lines

  1. //========================================================================================
  2. //
  3. // Exploder description for 'FWab' (ODF about box) resources
  4. //
  5. // Author:     Steve Crutchfield
  6. //
  7. // Copyright:  (c) 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. //========================================================================================
  10.  
  11. //----------------------------------------------------------------------------
  12. // FW_RFont, FW_RStringData, and FW_RStyledText are utility definitions
  13. // corresponding to the "Font", "StringData", and "StyledText" statements 
  14. // in the VDL.
  15. //----------------------------------------------------------------------------
  16.  
  17. Define(FW_RFont)
  18. {
  19.     Long(fFontSize);
  20.     Word(fFontStyle);
  21.     
  22.     // Using a list here is a workaround.  A better solution would
  23.     // be to use an Element(); however, there is no structure in
  24.     // VDL which causes all identifiers within its scope to
  25.     // apply to a sub-element rather than the containing element.
  26.     // DynamicVList performs this task for a list, so we use a
  27.     // single-element list here.  This is needed because both
  28.     // FW_RFont and FW_RStringData contain script and language
  29.     // code fields, which must have the same name in each case so
  30.     // that a single VDL named statement can be used to generate all
  31.     // script/language code popup menus.
  32.     
  33.     List(fFontName, String, 1)
  34.     {
  35.         Word(fScriptCode);
  36.         Word(fLanguageCode);
  37.         String(fFontName, LengthWord);
  38.     }
  39. }
  40.  
  41. Define(FW_RStringData)
  42. {
  43.     // Use of List is a workaround; see comment in FW_RFont, above.
  44.     
  45.     List(fString, String, 1)
  46.     {
  47.         Word(fScriptCode);
  48.         Word(fLanguageCode);
  49.         String(fString, LengthWord);
  50.     }
  51. }
  52.  
  53. Define(FW_RStyledText)
  54. {
  55.     Call(FW_RFont);
  56.     Call(FW_RStringData);
  57. }
  58.  
  59. //----------------------------------------------------------------------------
  60. // Main definition begins here.
  61. //----------------------------------------------------------------------------
  62.  
  63. Word(fIconID);
  64.  
  65. // Use of List is a workaround; see comment in FW_RFont, above.
  66.  
  67. List(fPartName, StyledText, 1)
  68. {
  69.     Call(FW_RStyledText);
  70. }
  71.  
  72. List(fVersion, StyledText, 1)
  73. {
  74.     Call(FW_RStyledText);
  75. }
  76.  
  77. List(fCredits, StyledText, 1)
  78. {
  79.     Call(FW_RStyledText);
  80. }
  81.  
  82. List(fButtonString, String, 1)
  83. {
  84.     Call(FW_RStringData);
  85. }
  86.  
  87. Long(fSizeX);
  88. Long(fSizeY);
  89.